package com.zhny.sensor.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name="slaughter_house")
public class SlaughterHouse implements Serializable{
    @Id
    private int id;

    private String name; //名称
    private String userId; //负责人
    private String longitude;//经度
    private String latitude; //维度
    private String creatBy; //创建者
    private Date createDate;//创建时间
    private String province; //省
    private String city; //市
    private String district; //区
    private String address; //详细地址
    private String contacts; //联系人
    private Date establishDate; //成立日期
    private String marketPictures; //市场照片
    private String marketIntroduction; //市场简介
    private Integer state; //状态（0已删1正常2发布待审核3删除待审核）

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getCreatBy() {
        return creatBy;
    }

    public void setCreatBy(String creatBy) {
        this.creatBy = creatBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public Date getEstablishDate() {
        return establishDate;
    }

    public void setEstablishDate(Date establishDate) {
        this.establishDate = establishDate;
    }

    public String getMarketPictures() {
        return marketPictures;
    }

    public void setMarketPictures(String marketPictures) {
        this.marketPictures = marketPictures;
    }

    public String getMarketIntroduction() {
        return marketIntroduction;
    }

    public void setMarketIntroduction(String marketIntroduction) {
        this.marketIntroduction = marketIntroduction;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
